#include "bsp_usart.h"
#include "TiantuBus.h"
uint8_t rx_dat;
void UART1_Init(void)
{
    HAL_UART_Receive_IT(&huart1, &rx_dat, 1);
}

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
    if(huart -> Instance == USART1)
    {
		add_to_recv_buf(rx_dat);
		HAL_UART_Receive_IT(&huart1, &rx_dat, 1);
    }
}
